<?php

/**
 * Created by PhpStorm.
 * User: izbol
 * Date: 2017/3/30
 * Time: 20:04
 */
class input{
    function post($key){
        if(isset($_POST[$key])==false){
            return false;
        }
        $val=$_POST[$key];
        return $val;
    }
    function get($key){
        if(isset($_GET[$key])==false){
            return false;
        }
        $val=$_GET[$key];
        return $val;
    }
    function session($key){
        if(isset($_SESSION[$key])==false){
            return false;
        }
        $val=$_SESSION[$key];
        return $val;
    }

}